package com.wanho.java146.pojo;

import java.util.List;

public class Employer {

    private Integer id;

    private String name;

    //一个雇主可以拥有多个雇佣关系
    private List<Employment> employmentList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Employment> getEmploymentList() {
        return employmentList;
    }

    public void setEmploymentList(List<Employment> employmentList) {
        this.employmentList = employmentList;
    }

    @Override
    public String toString() {
        return "Employer{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", employmentList=" + employmentList +
                '}';
    }
}
